﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PI_CS_Tools
{
    public class Identification
    {
        string _description;
        int _number;

        public Identification(string _description)
        {
            this._description = _description;
            _number = RandomNumber.Get;
        }

        public Identification(int _id, string _description)
        {
            this._description = _description;
            _number = _id;
        }

        // Copy constructor

        public Identification(Identification _oldId)
        {
            _description = _oldId._description;
            _number = _oldId._number;
        }

        public int Number
        {
            get { return _number; }
        }

        public string Description
        {
            get { return _description; }
        }

        public override string ToString()
        {
            return _description + " - Number: " + _number;
        }
    }
}
